public class Bank {
    public double interestRate = 0.29;
    public double interest;
    public int savedMoney;
    public int year;

    public double computerInterest(){
        interest = year * interestRate * savedMoney;
        return interest;
    }
    public void setInterestRate(double rate){
        interestRate = rate;
    }
}
